home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / SegLoad.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  1.8 KB  |  88 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        SegLoad.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __SEGLOAD__
  18. #define __SEGLOAD__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #if GENERATINGPOWERPC
  31. #pragma options align=mac68k
  32. #endif
  33.  
  34. #ifdef __CFM68K__
  35. #pragma lib_export on
  36. #endif
  37.  
  38.  
  39. enum {
  40.     appOpen                        = 0,                            /*Open the Document (s)*/
  41.     appPrint                    = 1                                /*Print the Document (s)*/
  42. };
  43.  
  44. struct AppFile {
  45.     short                            vRefNum;
  46.     OSType                            fType;
  47.     short                            versNum;                    /*versNum in high byte*/
  48.     Str255                            fName;
  49. };
  50. typedef struct AppFile AppFile;
  51.  
  52. /*
  53.     Because PowerPC applications don’t have segments,
  54.     UnloadSeg is unsupported for PowerPC.
  55. */
  56. #if GENERATING68K
  57. extern pascal void UnloadSeg(void *routineAddr)
  58.  ONEWORDINLINE(0xA9F1);
  59. #else
  60. #define UnloadSeg(x)
  61. #endif
  62. #if !GENERATINGCFM
  63. extern pascal void CountAppFiles(short *message, short *count);
  64. extern pascal void GetAppFiles(short index, AppFile *theFile);
  65. extern pascal void ClrAppFiles(short index);
  66. extern pascal void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam)
  67.  ONEWORDINLINE(0xA9F5);
  68. #if CGLUESUPPORTED
  69. extern void getappparms(char *apName, short *apRefNum, Handle *apParam);
  70. #endif
  71. #endif
  72. extern pascal void ExitToShell(void)
  73.  ONEWORDINLINE(0xA9F4);
  74.  
  75. #ifdef __CFM68K__
  76. #pragma lib_export off
  77. #endif
  78.  
  79. #if GENERATINGPOWERPC
  80. #pragma options align=reset
  81. #endif
  82.  
  83. #ifdef __cplusplus
  84. }
  85. #endif
  86.  
  87. #endif /* __SEGLOAD__ */
  88.